package com.beyond.trace.domain.storage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description 生产加工记录
 * @Author: EDY
 * @Date: 2023-04-14 13:49
 * @Version: 1.0.0
 */
@Data
@TableName("t_trace_jxc_produce")
public class Produce extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private String id;

    /** 加工单号 */
    @Excel(name = "加工单号")
    @ApiModelProperty(value = "加工单号")
    private String produceNo;

    /** 加工名称 */
    @Excel(name = "加工名称")
    @ApiModelProperty(value = "加工名称")
    private String produceName;

    /** 加工产品 */
    @Excel(name = "加工产品")
    @ApiModelProperty(value = "加工产品")
    private String productId;

    /** 加工时间 */
    @Excel(name = "加工时间")
    @ApiModelProperty(value = "加工时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date produceTime;

    /** 删除标志 */
    @JsonIgnore
    @TableLogic
    private int delFlag;

    @ApiModelProperty(value = "部门id")
    @JsonIgnore
    private String departId;

}
